package com.plant.college.service.impl;

import com.plant.college.domain.Video;
import com.plant.college.mapper.VideoMapper;
import com.plant.college.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoServiceImpl implements VideoService {

    @Autowired
    VideoMapper videosMapper;

    @Override
    public List<Video> getAllVideos() {
        return videosMapper.getAllVideos();
    }

    @Override
    public Video findById(Long id) {
        return videosMapper.findById(id);
    }
}
